package com.wiscamp.ninechapters.problems.application.dto.vo.reports;

import com.wiscamp.ninechapters.ddd.ViewObject;
import com.wiscamp.ninechapters.problems.application.dto.vo.problems.OptionVO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.Collection;

/**
 * 练习任务报告明细
 */
@Data
@EqualsAndHashCode
public class ReportQuestionVO implements ViewObject {

    /**
     * 题编号
     */
    private long problemId = 0;

    /**
     * 问题编号
     */
    private long questionId = 0;

    private int questionIndex = 0;

    /**
     * 问题内容
     */
    private String questionHypertext = "";

    private String questionTypeName = "";

    /**
     * 问题解析编号
     */
    private long solutionId = 0;

    /**
     * 问题解析内容
     */
    private String solutionHypertext = "";

    /**
     * 解题耗时秒数
     */
    private int questionSpendSeconds = 0;

    /**
     * 是否包含选项
     */
    private boolean HasOption = false;

    private Collection<OptionVO> options = new ArrayList<>();

    /**
     * 问题得分
     */
    private double questionGainScore = 0;

    private int correctStatus = 0;

    private Collection<ReportAnswerVO> reportAnswers = new ArrayList<>();
}

